package me.javaweb.seata.user.feigen;

import me.javaweb.seata.user.entity.Test;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("seata-account")
public interface AccountService {

    @PostMapping("/")
    Test save(@RequestParam("flag") Boolean flag);

    @GetMapping("/")
    List<Test> list();
}
